package com.anhry.app.safety.util.bean;


public class ExcelHeaderBean{
	private Object colName ;//列名
	private int colSpan ; //列合并
	private int rowSpan ; //行合并
	
	public ExcelHeaderBean() { }

	public ExcelHeaderBean(String colName,int colSpan,int rowSpan){
		this.colName = colName ;
		this.colSpan = colSpan ;
		this.rowSpan = rowSpan ;
	}
	
	public ExcelHeaderBean(Object colName){
		this.colName = colName ;
		this.colSpan = 1 ;
		this.rowSpan = 1 ;
	}
	
	public static ExcelHeaderBean[] getExcelHeaderBeanArray(Object[] header){
		ExcelHeaderBean beanArray[] = new ExcelHeaderBean[header.length];
		for(int i=0;i<beanArray.length;i++){
			beanArray[i] = new ExcelHeaderBean(header[i]) ;
		}
		return beanArray ;	
	}
	

	public Object getColName() {
		return colName;
	}

	public void setColName(Object colName) {
		this.colName = colName;
	}

	public int getColSpan() {
		return colSpan;
	}

	public void setColSpan(int colSpan) {
		this.colSpan = colSpan;
	}

	public int getRowSpan() {
		return rowSpan;
	}

	public void setRowSpan(int rowSpan) {
		this.rowSpan = rowSpan;
	}
	
}
